package models
import (
	"time"
	"github.com/astaxie/beego/orm"
)


//用户控制记录的数组结构
type DevicesLog struct {
	Id          	int64		`orm:"unique;auto"`
	Log			string
	TimeStamp		time.Time	`orm:"auto_now_add;type(datetime)"`
}




func init() {
	// 需要在init中注册定义的model
	orm.RegisterModel(new(DevicesLog))
}



func InsertDevicesLog(log *DevicesLog)  {

}
//func getDevicesLogByTime(t time)  {
//
//}

func getAccessDevicesLogById(id uint64)  {

}

//func getAllDevicesLog() (logs[] DevicesLog){
//
//}